package com.git.bds.mr.hospital.convert;

import com.git.bds.mr.doctor.model.domain.Doctor;
import com.git.bds.mr.doctor.model.dto.DoctorInfoDTO;
import com.git.bds.mr.hospital.model.vo.DoctorVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 成大事
 * @since 2022/9/19 18:48
 */
@Mapper
public interface DoctorConvert {

    DoctorConvert INSTANCE = Mappers.getMapper(DoctorConvert.class);

    /**
     * 医生列表
     *
     * @param doctorList 医生名单
     * @return {@link List}<{@link DoctorVO}>
     */
    List<DoctorVO> toDoctorVO(List<Doctor> doctorList);


    /**
     * 医生
     *
     * @param doctorInfoDTO 医生信息dto
     * @return {@link Doctor}
     */
    Doctor toDoctor(DoctorInfoDTO doctorInfoDTO);
}
